package com.hl.sfzy.mapper;

import com.hl.sfzy.entity.Appointment;
import com.hl.sfzy.entity.Free;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AppointmentMapper {
    Appointment selectById(long id);
    long deleteById(long id);
    long update(Appointment appointment);
    long insert(Appointment appointment);
    List<Appointment> getAllList();
    List<Appointment> findByPage(@Param("pageNum") int pageNum,
                                 @Param("pageSize") int pageSize,
                                 @Param("appointment") Appointment appointment);
}
